package com.supercube.system.dao;

import com.supercube.system.domain.UserDO;
import com.supercube.system.vo.UserBO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author supercube
 * @email 670328140@qq.com
 * @date 2017-10-03 09:45:11
 */
@Mapper
public interface UserDao {

	UserDO get(Long userId);
	
	List<UserDO> queryUsrlist(UserBO bo);

	List<UserDO> queryList(Long[] userIds);

	int batchUpdatePwd(List<UserDO> list);

	List<UserDO> queryCoachAndSaleList(UserBO bo);

	List<UserDO> list(Map<String,Object> map);

	int count(Map<String,Object> map);
	
	int save(UserDO user);
	
	int update(UserDO user);
	
	int remove(Long userId);
	
	int batchRemove(Long[] userIds);
	
	Long[] listAllDept();

	List<String> queryRoleMenu(@Param("userId") String userId,@Param("roleId") String roleId);

    UserDO selectUserByMobile(String mobile);
}
